package com.accp.controller;


<<<<<<< HEAD
import java.util.HashMap;
import java.util.Map;
=======
import java.util.List;

>>>>>>> b2bf8575919983cc77baa0b30105d228461a060c

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import com.accp.entity.PsUser;
import com.accp.service.IPsUserService;
<<<<<<< HEAD
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
=======
>>>>>>> b2bf8575919983cc77baa0b30105d228461a060c

/**
 * <p>
 *  前端控制器
 * </p>
 *
<<<<<<< HEAD
 * @author 曹畅
 * @since 2019-11-20
=======
 * @author wyk
 * @since 2019-11-15
>>>>>>> b2bf8575919983cc77baa0b30105d228461a060c
 */
@RestController
@RequestMapping("/accp/psUser")
public class PsUserController {
<<<<<<< HEAD
	@Autowired
	IPsUserService iPsUserService;
	
	@RequestMapping("/fetchUser")
	public Map<String, Object> fetchUser(String openid){
		System.out.println("op:"+openid);
		Map<String, Object> map = new HashMap<String, Object>();
		
		Map<String, Object> map2 = iPsUserService.getMap(new QueryWrapper<PsUser>().eq("openid", openid));
		
		map.put("user", map2);
		
		return map;
	}
=======
<<<<<<< HEAD
	@Autowired
	IPsUserService iPsUserService;
	
	@RequestMapping("/test")
	void testGetUser() {
		List<PsUser> list = iPsUserService.getBaseMapper().selectList(null);
		list.forEach(System.out::println);
	}
=======

>>>>>>> 54eaa77053a6056f5a35b4d4df313bd0dddf7966
>>>>>>> b2bf8575919983cc77baa0b30105d228461a060c
}

